package com.oig.sys.log.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.util.Date;


@Schema
@Data
public class SysLogVo {

    @Schema(description = "主键id")
    private String id;

    @Schema(description = "操作用户id")
    private Integer userId;

    @Schema(description = "操作用户")
    private String userName;

    @Schema(description = "操作用户ip")
    private String loginIp;

    @Schema(description = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date optTime;

    @Schema(description = "系统id")
    private Integer systemId;

    @Schema(description = "菜单id")
    private Integer resourceId;

    @Schema(description = "操作类型")
    private String optType;

    @Schema(description = "请求url")
    private String apiUrl;

    @Schema(description = "操作记录id")
    private String optObjId;

    @Schema(description = "操作内容")
    private String content;

    @Schema(description = "参数json")
    private String oldval;

    @Schema(description = "返回值json")
    private String newval;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "操作结果：0-成功 1-失败")
    private String result;

    @Schema(description = "执行时长")
    private Long exeTime;

    @Schema(description = "异常")
    private String exception;

    @Schema(description = "操作用户所属租户id")
    private Integer tenantId;

    @Schema(description = "操作用户所属租户名称")
    private String tenantName;

    @Schema(description = "跟踪号")
    private String traceId;
}
